package com.igeek.boot.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jwj
 * @since 2023-12-26
 */
@Data
@TableName("outgoingstock")
@ApiModel(value="Outgoingstock对象", description="")
public class Outgoingstock implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "记录ID（RecordID）：唯一标识每个出库记录的ID")
    @TableId(value = "recordID", type = IdType.AUTO)
    private Integer recordID;

    @ApiModelProperty(value = "出库订单号")
    @TableField("outgoing_number")
    private String outgoingNumber;

    @ApiModelProperty(value = "出库的物资的名称")
    private String outgoingName;

    @ApiModelProperty(value = "出库的物资的类型")
    private String outgoingType;

    @ApiModelProperty(value = "出库数量（OutgoingQuantity）：出库的物资数量")
    private Integer outgoingQuantity;

    @ApiModelProperty(value = "出库日期（OutgoingDate）：物资出库的日期")
    private LocalDateTime outgoingDate;

    @ApiModelProperty(value = "出库订单的修改时间")
    @TableField(value = "update_time" ,fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "外键关联客户表的ID")
    @TableField("customerID")
    private Integer customerID;

    @ApiModelProperty(value = "外键关联操作的货架ID")
    @TableField("shelfID")
    private Integer shelfID;

    @ApiModelProperty(value = "出库的订单状态")
    private Integer station;


    //货架名称
    @ApiModelProperty(value = "货架名称")
    @TableField(exist = false)
    private String shelfName;

    //仓库名称
    @ApiModelProperty(value = "仓库名称")
    @TableField(exist = false)
    private String warehouseName;

    @ApiModelProperty(value = "客户名")
    @TableField(exist = false)
    private String customerName;

}
